﻿using System.Collections.Generic;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SouthernLand.Common.BOL.Location
{
    [ParseChildren(true)]
    public class ddlJobLocation : DropDownList
    {
        public ddlJobLocation()
        {
            int CountryID;
            CountryID = Globals.LangVietNam() ? 1 : 2;
            List<JobLocation> obj = JobLocation.GetJobLocationByCountryID(CountryID);
            DataSource = obj;
            DataValueField = "JobLocationID";
            DataTextField = (Globals.LangVietNam()) ? "JobLocationName" : "JobLocationName_en";
            DataBind();
            Items.Insert(0, new ListItem(ResourceManager.GetString("PleaseSelect"), ""));
        }
    }
}